package com.wgchao.amc.entity.base;

import javax.persistence.*;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

/**
 * @作者  wgchao
 * @时间 2019-10-19 
 * @用途  
 */

@AllArgsConstructor
@NoArgsConstructor
@Data
@Entity
@Table ( name ="sys_base_group" )
public class SysBaseGroup  implements Serializable {

	private static final long serialVersionUID =  7008351937610658179L;

	/**
	 * 部门ID
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "group_id" )
	private Long groupId;

	/**
	 * 部门名称
	 */
   	@Column(name = "group_name" )
	private String groupName;

	/**
	 * 机构编号
	 */
   	@Column(name = "agency_code" )
	private String agencyCode;

	/**
	 * 上级部门ID
	 */
	@Column(name = "par_group" )
	private Long parGroup;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 创建人
	 */
   	@Column(name = "create_user" )
	private Long createUser;

	/**
	 * 最近更新时间
	 */
   	@Column(name = "last_update_time" )
	private Date lastUpdateTime;

	/**
	 * 最近更新人
	 */
   	@Column(name = "last_update_user" )
	private Long lastUpdateUser;

	/**
	 * 删除时间
	 */
   	@Column(name = "del_time" )
	private Date delTime;

	/**
	 * 删除人
	 */
   	@Column(name = "del_user" )
	private Long delUser;

	/**
	 * 删除标志
	 */
   	@Column(name = "del" )
	private boolean del;

}
